<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>给组件绑定原生事件（native）</title>
	<script src="js/vue.js"></script>
</head>

<body>
	<div id="root">
		<demo @click.native="handleClick"></demo>
	</div>
</body>
<script>
	Vue.component("demo", {
		template: "<div>demo,ahhhhhhh</div>",
	})
	var vm = new Vue({
		el: "#root",
		methods: {
			handleClick: function () {
				alert("click success");
			}
		}
	})
</script>

</html>
